import unittest
from utils.HTMLTestRunner3_New import HTMLTestRunner

discover=unittest.defaultTestLoader.discover(start_dir=r"D:\python--tl\cms_api_auto\test_case",pattern="test*.py")
file=open(r"D:\python--tl\cms_api_auto\report"+"\\"+"_cms_api_auto_report.html","wb")
runner=HTMLTestRunner(stream=file,
                      title="cms接口自动化测试",
                      description="测试结果如下",
                      tester="TL")
runner.run(discover)
